package com.scf.service;

import com.scf.entity.User;
import com.scf.service.factory.UserServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author author
 * @create 2021-11-11-15:31
 */
@FeignClient(name = "user",fallbackFactory = UserServiceFallbackFactory.class)
public interface UserService {
    @PostMapping("/user/getUser")
    public User getUser(@RequestBody User user);


}
